########################################
#
#
#
#
#

require File.join(File.expand_path(File.dirname(__FILE__)), 'base.rb')

require 'nokogiri'

#
def combine_css name
	

end

#
def find_css source_file, css_file
	html = file_content source_file
	doc = Nokogiri::HTML(html)
	doc.xpath('//body/child::*').each{|a| puts "LINE\n:#{ a.get_attribute('class') }"}

end



# ruby css.rb update main.min.css
# Combine all the css files into a large one.
if $mode_name === Everest::ModeUpdate
  	puts "Create Main CSS '#{$module_name}'."
  	$module_name = 'main.min.css' if !$module_name
  	combine_css($module_name)
elsif $mode_name === Everest::ModeFind
#ruby css.rb find a.html b.css
	puts "Find CSS entries..."
	puts find_css($module_name, $args[0])
end



